<template>
	<view class="content">
		<view class="zcon1">
			<input type="text" v-model="pass" placeholder="请设置新密码（6位）" />
		</view>
		<view class="zcon1">
			<input type="text" v-model="pass1" placeholder="再次请设置新密码（6位）" />
		</view>
		<view class="btnsave" @tap="save">确定修改</view>
	</view>
</template>

<script>
	const app = getApp();
	export default {
		data() {
			return {
				pass:'',
				pass1:'',
			};
		},
		/**
		 * 生命周期函数--监听页面加载
		 */
		
		onLoad(options) {
			var that = this;
		},
		/**
		 * 生命周期函数--监听页面初次渲染完成
		 */
		onReady() {},
		/**
		 * 生命周期函数--监听页面显示
		 */
		onShow() {},
		/**
		 * 生命周期函数--监听页面隐藏
		 */
		onHide() {},
		/**
		 * 生命周期函数--监听页面卸载
		 */
		onUnload() {},
		/**
		 * 页面相关事件处理函数--监听用户下拉动作
		 */
		onPullDownRefresh() {},
		/**
		 * 页面上拉触底事件的处理函数
		 */
		onReachBottom() {},
		/**
		 * 用户点击右上角分享
		 */
		onShareAppMessage() {},
		methods: {
			save(){
				if(this.pass==''){
					app.globalData.show('请输入密码~')
					return true
				}
				if(this.pass1==''){
					app.globalData.show('请输入确认密码~')
					return true
				}
				if(this.pass1!=this.pass){
					app.globalData.show('两次输入密码不一致~')
					return true
				}
				
			}
		}
	};
</script>
<style>
	.btnsave{
		width: 700rpx;
		height: 94rpx;
		background: #24C373;
		border-radius: 8rpx;
		display: table;
		margin: 50px auto;
		text-align: center;
		line-height: 94rpx;
		font-family: PingFang SC;
		font-weight: bold;
		font-size: 36rpx;
		color: #FFFFFF;
	}
	.zcon1>input{
		width: 100%;
		height: 100rpx;
		display: table;
		font-family: PingFang SC;
		font-weight: 400;
		font-size: 32rpx;
		color: #999999;
		box-sizing: border-box;
		padding-right: 100px;
	}
	.zcon1{
		width: 100%;
		height: 100rpx;
		position: relative;
		display: table;
		background-color: #fff;
		box-sizing: border-box;
		padding: 0px 24rpx;
		margin-bottom: 30rpx;
	}
	page{
		background-color: #f6f6f6;
	}
	.content {
		width: 100%;
		height: auto;
		display: table;
	}
</style>